package com.nyc;

import com.nyc.boot.config.JavaConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 26917
 */
public class StartApp {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);
        System.out.println("context.getBean(\"userService\") === " + context.getBean("userService"));
    }
}